'use strict';

function compute_average(collection) {
  //在这里写入代码
  var sum=collection.reduce(function(pre,cur){
    return pre+cur;
  },0)
  return sum/collection.length;
}

module.exports = compute_average;

